<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<%-- 
    JSP Name : counsel_ctr02.jsp
    Description : 시승 센터 조회
    author SJYoon
    since 2012. 6. 25.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 6. 25.     SJYoon     최초 생성
--%>

                                    <table summary="시승센터 주소 및 연락처">
                                    <caption>희망장소 검색결과</caption>
                                    <colgroup>
                                        <col width="7%" />
                                        <col width="25%" />
                                        <col />
                                        <col width="15%" />
                                        <col width="12%" />
                                    </colgroup>
                                    <thead>
                                    <tr>
                                        <th scope="col">선택</th>
                                        <th scope="col">시승센터</th>
                                        <th scope="col">주소</th>
                                        <th scope="col">연락처</th>
                                        <th scope="col">약도보기</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    
                                    <c:if test="${fn:length(ctrList) > '0' }">
                                    <c:forEach var="ctr" items="${ctrList}" varStatus="status">
                                    <tr>
                                        <td class="bg01 center"><input type="radio" class="check" name="ctrsCdL" id="ctrsCdL" value="${ctr.ctrCd }" onclick="getCarList( '${ctr.ctrCd }','${ctr.ctrNm }','${ctr.th1Tn }-${ctr.th2Tn }-${ctr.th3Tn }' );" /></td>
                                        <td>${ctr.ctrNm }</td>
                                        <td>${ctr.ctrAdr }</td>
                                        <td class="center">${ctr.th1Tn }-${ctr.th2Tn }-${ctr.th3Tn }</td>
                                        <td class="last center"><a href="javascript:fnCtrPopView('${ctr.ctrCd}');"><img src="/kr/images/common/button/btn_contact.gif" alt="약도보기" /></a></td>
                                    </tr>
                                    </c:forEach>
                                    </c:if>
                                    <c:if test="${fn:length(ctrList) == '0' }">
                                    <!-- 검색결과 없을 시 -->
                                    <tr>
                                        <td colspan="5" class="last center"><b>선택하신 시승센터에는 차량이 준비되지 않았습니다</b></td>
                                    </tr>
                                    <!-- //검색결과 없을 시 -->
                                    </c:if>

                                    </tbody>
                                    </table>